package com.kdgc.power.base.service;

import com.kdgc.power.common.util.StringUtil;
import com.kdgc.power.fw.service.BaseService;
import org.springframework.stereotype.Service;
import com.kdgc.power.base.entity.BaseRecord;

import java.util.HashMap;
import java.util.Map;

@Service
public class BaseRecordService extends BaseService<BaseRecord> {
    public Object searchPage(int page, int rows, String recordName) {
        Map<String, Object> paras = new HashMap<>();
        if (StringUtil.isNotEmpty(recordName)) {
            paras.put("recordName", "%" + recordName + "%");
        }
        return getPage("baseRecord.select", paras, page, rows);
    }
}